<template>
  <div>
    <keep-alive>
      <!-- <router-view></router-view> -->
      <router-view v-if="$route.meta.needKeep"></router-view>
    </keep-alive>

    <!-- //不需要缓存的包在keep-alive外面 -->
    <router-view v-if="!$route.meta.needKeep"></router-view>
  </div>
</template>

<script>
export default {};
</script>

<style></style>
